import commissionApi from "@/api/declaration/mall/commissionApi"
import httpRequest from "@/config/axios/httpRequest"
import { ConfigModel } from "@/models/confs/ConfigModel"

// 查询交易中心配置详情
export const getTradeConfig = async () => {
  return await httpRequest.get(commissionApi.GetTradeConfig)
}

// 保存交易中心配置
export const saveTradeConfig = async (data: ConfigModel) => {
  return await httpRequest.put(commissionApi.SaveTradeConfig, data)
}
